package net.xdclass.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Allen
 * @version 1.0
 * @date 2022/11/11 21:41
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "group_code_mapping")
@Builder
public class GroupCodeMappingDO implements Serializable {
    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    /**
     * 组
     */
    @TableField(value = "group_id")
    private Long groupId;

    /**
     * 短链标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 原始url地 址
     */
    @TableField(value = "original_url")
    private String originalUrl;

    /**
     * 短链域名
     */
    @TableField(value = "`domain`")
    private String domain;

    /**
     * 短链压缩码
     */
    @TableField(value = "code")
    private String code;

    /**
     * ⻓链的md5码，⽅便查找
     */
    @TableField(value = "sign")
    private String sign;

    /**
     * 过期时间，⻓久就是-1
     */
    @TableField(value = "expired")
    private Date expired;

    /**
     * 账号唯⼀编号
     */
    @TableField(value = "account_no")
    private Long accountNo;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    /**
     * 0是默认，1是删除
     */
    @TableField(value = "del")
    private Integer del;

    /**
     * 状态，lock是锁定不可⽤，active是可⽤
     */
    @TableField(value = "`state`")
    private String state;

    /**
     * 链接产品层级：FIRST 免费⻘铜、SECOND⻩⾦、THIRD钻⽯
     */
    @TableField(value = "link_type")
    private String linkType;

    private static final long serialVersionUID = 1L;
}